package com.garbageteam.garbageserver.repository;

import com.garbageteam.garbageserver.model.GarbageOut;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface GarbageOutRepository extends JpaRepository<GarbageOut,Long> {

    GarbageOut findByGarbageName(String garbageName);

    Page<GarbageOut> findAllByGarbageType(Integer garbageType, Pageable pageable);
}
